how to redraw lines based on datasets in a plugin in chart js